package com.javajun.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

import com.fasterxml.jackson.annotation.JsonIgnore;

@Entity
public class Student extends SysUser{

    private StuNum stuNum;

    @JsonIgnore
    @OneToOne(cascade=CascadeType.REFRESH)
    public StuNum getStuNum() {
        return stuNum;
    }

    public void setStuNum(StuNum stuNum) {
        this.stuNum = stuNum;
    }
    
}
